<%@ tag import="com.aiwei.tdjk.common.utils.SpringUtils1" %>
<%@ tag import="com.aiwei.tdjk.sys.group.entity.Group" %>
<%@ tag import="com.aiwei.tdjk.sys.group.service.GroupService" %>
<%@ tag pageEncoding="UTF-8"%>
<%@ attribute name="id" type="java.lang.Long" required="true" description="当前要展示的用户的id" %>
<%

       GroupService groupService = (GroupService) SpringUtils1.getBean("groupService");

    Group group = (Group) groupService.findOne(id);

    if(group == null) {
        out.write("<span class='label label-important'>删除的数据，请修改</span>");
        return;
    }

    StringBuilder s = new StringBuilder();
    s.append("<a class='btn btn-link no-padding' href='"+request.getContextPath()+"/admin/sys/group/"+id+"'>");
    s.append(group.getName());
    s.append("</a>");
    out.write(s.toString());
%>
